import service from '@/utils/request'

// @Tags ConceptDrawingCategory
// @Summary 创建概念图纸分类库
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ConceptDrawingCategory true "创建概念图纸分类库"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /conceptDrawingCategory/createConceptDrawingCategory [post]
export const createConceptDrawingCategory = (data) => {
  return service({
    url: '/conceptDrawingCategory/createConceptDrawingCategory',
    method: 'post',
    data
  })
}

// @Tags ConceptDrawingCategory
// @Summary 删除概念图纸分类库
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ConceptDrawingCategory true "删除概念图纸分类库"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /conceptDrawingCategory/deleteConceptDrawingCategory [delete]
export const deleteConceptDrawingCategory = (params) => {
  return service({
    url: '/conceptDrawingCategory/deleteConceptDrawingCategory',
    method: 'delete',
    params
  })
}

// @Tags ConceptDrawingCategory
// @Summary 批量删除概念图纸分类库
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除概念图纸分类库"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /conceptDrawingCategory/deleteConceptDrawingCategory [delete]
export const deleteConceptDrawingCategoryByIds = (params) => {
  return service({
    url: '/conceptDrawingCategory/deleteConceptDrawingCategoryByIds',
    method: 'delete',
    params
  })
}

// @Tags ConceptDrawingCategory
// @Summary 更新概念图纸分类库
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ConceptDrawingCategory true "更新概念图纸分类库"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /conceptDrawingCategory/updateConceptDrawingCategory [put]
export const updateConceptDrawingCategory = (data) => {
  return service({
    url: '/conceptDrawingCategory/updateConceptDrawingCategory',
    method: 'put',
    data
  })
}

// @Tags ConceptDrawingCategory
// @Summary 用id查询概念图纸分类库
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ConceptDrawingCategory true "用id查询概念图纸分类库"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /conceptDrawingCategory/findConceptDrawingCategory [get]
export const findConceptDrawingCategory = (params) => {
  return service({
    url: '/conceptDrawingCategory/findConceptDrawingCategory',
    method: 'get',
    params
  })
}

// @Tags ConceptDrawingCategory
// @Summary 分页获取概念图纸分类库列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取概念图纸分类库列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /conceptDrawingCategory/getConceptDrawingCategoryList [get]
export const getConceptDrawingCategoryList = (params) => {
  return service({
    url: '/conceptDrawingCategory/getConceptDrawingCategoryList',
    method: 'get',
    params
  })
}
